<%@page contentType="text/html" pageEncoding="UTF-8"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  

    <!-- Si l'identification echoue -->
    <c:if test="${param['action'] == 'todo'}"> 
        <span class='alert alert-danger'>${param['message']}</span>
        <br/><br/>
    </c:if>
    
    <!-- Affichage du formulaire d'identification -->
    <form class="form-horizontal centered" role="form" action="ServletIdentification" method="post" >
        
        <div class="form-group">
            <label for="inputLogin" class="col-sm-2 control-label">Login : </label>
            <div class="col-sm-4">
                <input type="text" name="login" class="form-control" id="inputLogin" placeholder="Login">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword" class="col-sm-2 control-label">Mot de passe : </label>
            <div class="col-sm-4">
                <input type="password" name="mdp" class="form-control" id="inputPassword" placeholder="Mot de passe">
            </div>
        </div>
        <input type="hidden" name="action" value="connecterUnUtilisateur"/>  
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" name="submit" class="btn btn-success">Se connecter</button>
            </div>
        </div>
    </form>